package com.xy.farm.activity.deal.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.xy.farm.R;

/**
 * Created by 1174607250 on 2018/8/16.
 */
public class SearchGoodsAdapter extends RecyclerView.Adapter<SearchGoodsAdapter.ViewHolder>
{
    private int size = 10;
    public class ViewHolder extends RecyclerView.ViewHolder
    {
        public ViewHolder(View view)
        {
            super(view);
        }
    }
    @Override
    public int getItemCount()
    {
        return size;
    }
    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
    {
        return new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_deal_all, parent, false));
    }
    @Override
    public void onBindViewHolder(ViewHolder holder, int position)
    {

    }
}